package cn.tedu.charging.device.service.impl;

import cn.tedu.charging.common.pojo.param.GunStatusUpdateParam;
import cn.tedu.charging.common.pojo.vo.GunInfoVO;
import cn.tedu.charging.device.service.DeviceService;
import cn.tedu.charging.common.pojo.vo.StationInfoVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class DeviceServiceImpl implements DeviceService {

    @Override
    public StationInfoVO getStationInfo(Integer gunId) {
        StationInfoVO stationInfoVO = new StationInfoVO();
        stationInfoVO.setStationId(99);
        return stationInfoVO;
    }

    @Override
    public Boolean updateGunStatus(GunStatusUpdateParam param) {
        return true;
    }

    @Override
    public GunInfoVO getGunInfo(Integer gunId) {
        GunInfoVO gunInfoVO = new GunInfoVO();
        gunInfoVO.setGun_type(1);
        //TODO 去表中查询
        log.debug("查询到枪{}的信息为{}",gunId,gunInfoVO);
        return gunInfoVO;
    }
}
